<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>Castle ActiveRecord学习实践（2）：构建配置信息 - TerryLee's Tech Space - 博客园</title>
<meta name="keywords" content="11,数据持久,12,开源世界,Castle,ActiveRecord学习实践,构建配置信息">
<meta name="description" content="ActiveRecord在底层封装了NHibernate，在框架启动时需要指定相关的配置信息，那么我们需要配置些什么？又该如何去配置呢？本文将会介绍在ActiveRecord中构建配置信息。主要内容1．需要配置什么2．如何去配置3．常见的配置示例">




<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/Terrylee/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/Terrylee/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        <link rel="shortcut icon" href="blogengine.ico">
<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle">
	<a id="lnkBlogLogo" href="http://www.cnblogs.com/Terrylee/"><img id="blogLogo" src="logo.gif" alt="返回主页"></a>			
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/Terrylee/">TerryLee's Tech Space</a></h1>
<h2>TerryLee技术专栏</h2>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<!--done-->
			<ul id="navList">
				<li><a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
				<li><a id="MyLinks1_SpaceLink" class="menu" href="http://space.cnblogs.com/">社区</a></li>
				<li><a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/Terrylee/">首页</a></li>
				<li><a id="MyLinks1_NewPostLink" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?opt=1">新随笔</a></li>
				<li><a id="MyLinks1_ContactLink" accesskey="9" class="menu" href="http://space.cnblogs.com/msg/send/TerryLee">联系</a></li>
				<li><a id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx">管理</a></li>
				<li><a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/Terrylee/rss">订阅</a>
				<a id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/Terrylee/rss"><img src="rss.gif" alt="订阅" style="border-width: 0px;"></a></li>
			</ul>


		<div class="blogStats">
			
			
<!--done-->
随笔- 491&nbsp;
文章- 3&nbsp;
评论- 15367&nbsp;

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		
					
<!--done-->
<div id="topics">
	<div class="post">
		<h1 class="postTitle">
			<a id="ctl04_TitleUrl" class="postTitle2" href="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html">Castle ActiveRecord学习实践（2）：构建配置信息</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">摘要：<span lang="EN-US">ActiveRecord</span>在底层封装了<span lang="EN-US">NHibernate</span>，在框架启动时需要指定相关的配置信息，那么我们需要配置些什么？又该如何去配置呢？本文将会介绍在<span lang="EN-US">ActiveRecord</span>中构建配置信息。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">主要内容<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．需要配置什么<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．如何去配置<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">3</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．常见的配置示例<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">一．需要配置什么<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">在第一篇大家都已经看到了，其实我们的配置信息跟用<span lang="EN-US">NHibernate</span>时的配置是一样的，这是因为<span lang="EN-US">ActiveRecord</span>在底层封装了<span lang="EN-US">NHibernate</span>。为了没有用过<span lang="EN-US">NHibernate</span>的朋友，这里再把配置信息简单介绍一下。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．配置<span lang="EN-US">NHibernate ADO.NET</span>属性<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 158.4pt;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">属性名</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 270pt;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">说明</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.connection.provider_class</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">定制</span><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"><font face="宋体">IConnectionProvider</font></span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">的类型<span lang="EN-US">. <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">full.classname.of.ConnectionProvider</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> </span><span style="font-size: 10pt; line-height: 200%;">（如果提供者创建在<span lang="EN-US">NHibernate</span>中）<span lang="EN-US">, </span>或者 <code><span style="line-height: 200%;" lang="EN-US">full.classname.of.ConnectionProvider, assembly</span></code><span lang="EN-US"> </span>（如果使用一个自定义的<span lang="EN-US">IConnectionProvider</span>接口的实现，它不属于<span lang="EN-US">NHibernate</span>）。<span lang="EN-US"> <o:p></o:p></span></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.connection.driver_class</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">定制</span><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"><font face="宋体">IDriver</font></span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">的类型<span lang="EN-US">. <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">full.classname.of.Driver</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> </span><span style="font-size: 10pt; line-height: 200%;">（如果驱动类创建在<span lang="EN-US">NHibernate</span>中）<span lang="EN-US">, </span>或者 <code><span style="line-height: 200%;" lang="EN-US">full.classname.of.Driver, assembly</span></code><span lang="EN-US"> </span>（如果使用一个自定义<span lang="EN-US">IDriver</span>接口的实现，它不属于<span lang="EN-US">NHibernate</span>）。<span lang="EN-US"> <o:p></o:p></span></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.connection.connection_string</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">用来获得连接的连接字符串。</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.connection.isolation</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%;"><font face="宋体">设置事务隔离级别<span lang="EN-US">. </span>请检查 <code><span style="line-height: 200%;" lang="EN-US">System.Data.IsolationLevel</span></code><span lang="EN-US"> </span>来得到取值的具体意义并且查看数据库文档以确保级别是被支持的。<span lang="EN-US"><o:p></o:p></span></font></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">Chaos, ReadCommitted, ReadUncommitted, RepeatableRead, Serializable, Unspecified </span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．可选的配置属性<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">除了上面的<span lang="EN-US">ADO.NET</span>属性之外，我们还有如下的可选属性<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 158.4pt;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">属性名</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 270pt;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">说明</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.dialect</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">NHibernate</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">方言（<span lang="EN-US">Dialect</span>）的类名<span lang="EN-US"> - </span>可以让<span lang="EN-US">NHibernate</span>使用某些特定的数据库平台的特性<span lang="EN-US"> <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><span style="font-size: 10pt; line-height: 200%;"><font face="宋体"> <code><span style="line-height: 200%;" lang="EN-US">full.classname.of.Dialect</span></code>（如果方言创建在<span lang="EN-US">NHibernate</span>中）<span lang="EN-US">, </span>或者<code><span style="line-height: 200%;" lang="EN-US">full.classname.of.Dialect, assembly </span></code>（如果使用一个自定义的方言的实现，它不属于<span lang="EN-US">NHibernate</span>）。<span lang="EN-US"> <o:p></o:p></span></font></span></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.default_schema</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">在生成的<span lang="EN-US">SQL</span>中，<span lang="EN-US">scheml/tablespace</span>的全限定名<span lang="EN-US">. <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">SCHEMA_NAME</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> <o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.prepare_sql</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%;"><font face="宋体">是否准备<span lang="EN-US">sql</span>语句<span lang="EN-US"><o:p></o:p></span></font></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">true</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> | <code><span style="line-height: 200%;">false</span></code> <o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.session_factory_name</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"><font face="宋体">SessionFactory</font></span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">被创建后将自动绑定这个名称<span lang="EN-US">. <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">some.name</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> <o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.use_outer_join</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">允许使用外连接抓取。<span lang="EN-US"> <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">true</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> | <code><span style="line-height: 200%;">false</span></code> <o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.cache.provider_class</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">指定一个自定义的</span><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"><font face="宋体">CacheProvider</font></span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">缓存提供者的类名<span lang="EN-US"> <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">full.classname.of.CacheProvider</span></code><span style="font-size: 10pt; line-height: 200%;">（如果<span lang="EN-US">ICacheProvider</span>创建在<span lang="EN-US">NHibernate</span>中）<span lang="EN-US">, </span>或<code><span style="line-height: 200%;" lang="EN-US">full.classname.of.CacheProvider, assembly</span></code>（如果使用一个自定义的<span lang="EN-US">ICacheProvider</span>，它不属于<span lang="EN-US">NHibernate</span>）。<span lang="EN-US"><o:p></o:p></span></span></font></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hibernate.query.substitutions</span></code><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"> </span></font><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">把<span lang="EN-US">NHibernate</span>查询中的一些短语替换为<span lang="EN-US">SQL</span>短语（比如说短语可能是函数或者字符）。<span lang="EN-US"> <o:p></o:p></span></span></p>
            <p style="margin: 0cm 0cm 0pt; line-height: 200%;"><strong><span style="font-weight: normal; font-size: 10pt; line-height: 200%; font-family: 宋体;">例如：</span></strong><font face="宋体"><b style=""><span style="font-size: 10pt; line-height: 200%;"> </span></b><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">hqlLiteral=SQL_LITERAL, hqlFunction=SQLFUNC</span></code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US"> <o:p></o:p></span></font></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">可以数据库设置一个<span lang="EN-US">hibernate.dialect</span>方言，它是<span lang="EN-US">NHibernate.Dialect.Dialect </span>的一个子类。如果不需要使用基于<span lang="EN-US">native</span>或者<span lang="EN-US">sequence</span>的主键自动生成算法，或者悲观锁定（使用<span lang="EN-US">ISession.Lock() </span>或者<span lang="EN-US"> IQuery.SetLockMode())</span>的话，方言就可以不必指定。然而，假若你指定了一个方言，<span lang="EN-US">Hibernate</span>会为上面列出的一些属性使用特殊默认值，省得我们手工指定。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">NHibernate SQL </span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">方言对照表：<span lang="EN-US"><o:p></o:p></span></span></p>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td style="border: 1pt solid windowtext; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 158.4pt;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">数据库系统</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
            <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(212, 208, 200); border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 270pt;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">SQL</span></b><b><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">方言</span></b><b><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></b></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">DB2</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.DB2Dialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">PostgreSQL</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.PostgreSQLDialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">MySQL</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.MySQLDialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Oracle (any version)</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.OracleDialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Oracle 9/<st1:chmetcnv w:st="on" unitname="g" sourcevalue="10" hasspace="False" negative="False" numbertype="1" tcsc="0">10g</st1:chmetcnv></span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.Oracle9Dialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Sybase</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.SybaseDialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Microsoft SQL Server 2000</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.MsSql2000Dialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr>
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Microsoft SQL Server 7</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.MsSql7Dialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
        <tr style="">
            <td style="border-style: none solid solid; border-color: rgb(212, 208, 200) windowtext windowtext; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 158.4pt; background-color: transparent;" width="211">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Firebird</span><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
            </td>
            <td style="border-style: none solid solid none; border-color: rgb(212, 208, 200) windowtext windowtext rgb(212, 208, 200); border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 270pt; background-color: transparent;" width="360">
            <p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><font face="宋体"><code><span style="font-size: 10pt; line-height: 200%;" lang="EN-US">NHibernate.Dialect.FirebirdDialect</span></code><span style="font-size: 10pt; color: black; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></font></p>
            </td>
        </tr>
    </tbody>
</table>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">二．如何去配置<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">ActiveRecord</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">为我们提供了三种方式的配置<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">XmlConfigurationSource</span>配置<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">可以使用自己的<span lang="EN-US">XML</span>文件来保存配置信息，例如有一个<span lang="EN-US">MyConfig.xml</span>的文件</span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml&nbsp;version="1.0"&nbsp;encoding="utf-8"&nbsp;</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.SqlClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MsSql2000Dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Data&nbsp;Source=.;Initial&nbsp;Catalog=ARDemo;UID=sa;Password=sa"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">&nbsp;<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">这时候我们在框架初始化的时候就应该这样写：</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">XmlConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;XmlConfigurationSource(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MyConfig.xml</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(source,</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase));</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">其中<span lang="EN-US">XmlConfigurationSource</span>通过重载提供了如下三个公用的构造函数<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 10.5pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">public XmlConfigurationSource(String xmlFileName)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 10.5pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">public XmlConfigurationSource(Stream stream)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt 10.5pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">public XmlConfigurationSource(TextReader reader)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">不管是以文件名还是<span lang="EN-US">Stream</span>形式或者<span lang="EN-US">TextReader</span>，在<span lang="EN-US">XmlConfigurationSource</span>的内部都会转换为<span lang="EN-US">XmlDocument</span>。最后要注意<span lang="EN-US">xml</span>文件的路径，可以用生成后事件命令拷贝<span lang="EN-US">.xml</span>文件到<span lang="EN-US">bin</span>目录下<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">copy "$(ProjectDir)\*.xml" "$(TargetDir)"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">InPlaceConfigurationSource</span>配置<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">这种实现是一种硬编码的方式，在实际的使用中并不推荐，但是有时候如果我们的配置信息是动态的获取，则这种方式就会变得非常有用。</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">InPlaceConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;InPlaceConfigurationSource();<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">Hashtable&nbsp;properties&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;Hashtable();<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Driver.SqlClientDriver</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Dialect.MsSql2000Dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.provider</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Connection.DriverConnectionProvider</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.connection_string</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">UID=sa;Password=19811218;Initial&nbsp;Catalog=ARDemo;Data&nbsp;Source=.</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">source.Add(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase),&nbsp;properties&nbsp;);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase)&nbsp;);</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>3<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．使用应用程序配置文件<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">这种方式是最为常见的一种，即使用应用程序的配置文件（<span lang="EN-US">Web.config </span>或者<span lang="EN-US">App.config</span>），在配置文件中<br></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml&nbsp;version="1.0"&nbsp;encoding="utf-8"&nbsp;</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configSections</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">section&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="activerecord"</span><span style="color: rgb(255, 0, 0);">&nbsp;type</span><span style="color: rgb(0, 0, 255);">="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler,&nbsp;Castle.ActiveRecord"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configSections</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.SqlClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MsSql2000Dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="UID=sa;Password=sa;Initial&nbsp;Catalog=ARDemo;Data&nbsp;Source=."</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">
</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: blue; line-height: 200%; font-family: 宋体;" lang="EN-US"></span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">这时候我们的框架初始化代码应该这样写<span lang="EN-US"><o:p></o:p></span></span>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">[.NET1.1]</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">IConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;System.Configuration.ConfigurationSettings.GetConfig(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 255);">as</span><span style="color: rgb(0, 0, 0);">&nbsp;IConfigurationSource;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase)&nbsp;);&nbsp;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>[.NET2.0]<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">IConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;System.Configuration.&nbsp;ConfigurationManager.GetSection&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 255);">as</span><span style="color: rgb(0, 0, 0);">&nbsp;IConfigurationSource;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase)&nbsp;);</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>4<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．在<span lang="EN-US">Web</span>应用程序中的配置<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">如果我们是在<span lang="EN-US">Web</span>应用程序中使用<span lang="EN-US">ActiveRecord</span>，需要指定<span lang="EN-US">isWeb="true"</span>，如下<br></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord&nbsp;</span><span style="color: rgb(255, 0, 0);">isWeb</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.SqlClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MsSql2000Dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="UID=sa;Password=sa;Initial&nbsp;Catalog=ARDemo;Data&nbsp;Source=."</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">
</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: blue; line-height: 200%; font-family: 宋体;" lang="EN-US"></span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">一般的初始化工作我们会放在<span lang="EN-US">Application_</span></span><span lang="EN-US"> </span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Start</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">中，示例代码</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>
<p>&nbsp;</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Application_Start(Object&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_62_279_Open_Image" onclick="this.style.display='none'; Codehighlighter1_62_279_Open_Text.style.display='none'; Codehighlighter1_62_279_Closed_Image.style.display='inline'; Codehighlighter1_62_279_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_62_279_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_62_279_Closed_Text.style.display='none'; Codehighlighter1_62_279_Open_Image.style.display='inline'; Codehighlighter1_62_279_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_62_279_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_62_279_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;IConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Configuration.ConfigurationSettings.GetConfig(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 255);">as</span><span style="color: rgb(0, 0, 0);">&nbsp;IConfigurationSource;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase));<br><img src="inblock.gif" align="top"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"></p></o:p></span>&nbsp;
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">三．常见的配置示例<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Castle网站为我们提供的几个常见的配置示例<br>1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">MS SQLServer<br></span></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.SqlClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MsSql2000Dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Data&nbsp;Source=.;Initial&nbsp;Catalog=test;UID=sa;Password=sa"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br><o:p></o:p></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">Oracle<br></span></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.OracleClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.OracleDialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Data&nbsp;Source=dm;User&nbsp;ID=dm;Password=dm;"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br><o:p></o:p></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">
</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: blue; line-height: 200%; font-family: 宋体;" lang="EN-US"></span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">3</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">MySQL
<p>&nbsp;</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.MySqlDataDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MySQLDialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Database=test;Data&nbsp;Source=someip;User&nbsp;Id=blah;Password=blah"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"></p></span></span>&nbsp;
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">
</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: blue; line-height: 200%; font-family: 宋体;" lang="EN-US"></span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">4</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">Firebird</span></span>
<p>&nbsp;</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.FirebirdDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.FirebirdDialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Server=localhost;Database=d:\db.fdb;User=SYSDBA;password=masterkey;ServerType=1;Pooling=false"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.query.substitutions"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="true&nbsp;1,&nbsp;false&nbsp;0"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">5</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．<span lang="EN-US">PostgreSQL</span></span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.NpgsqlDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.PostgreSQLDialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="Server=localhost;initial&nbsp;catalog=nhibernate;User&nbsp;ID=nhibernate;Password=nhibernate;"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>关于<span lang="EN-US">ActiveRecord</span>构建配置信息的介绍就这么多了，内容比较简单。下篇文章中我会详细介绍<span lang="EN-US">ActiveRecord</span>中的映射，希望研究过<span lang="EN-US">Castle</span>的朋友不吝赐教。<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">参考资料<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Castle</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">的官方网站<span lang="EN-US"><span><a href="http://www.castleproject.org/" class="smarterwiki-linkify">http://www.castleproject.org</a></span><o:p></o:p></span></span></p>
<div id="MySignature">作者：<a href="http://terrylee.cnblogs.com/">TerryLee</a><br>
出处：<a href="http://terrylee.cnblogs.com/">http://terrylee.cnblogs.com</a>
<br>
本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。
</div>
<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(367381,14203,1)"> 
		<span class="diggnum" id="digg_count_367381">0</span>
	</div>
	<div class="buryit" onclick="DiggIt(367381,14203,2)"> 
		<span class="burynum" id="bury_count_367381">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_367381">0</span>	
	<div class="diggword" id="digg_word_367381">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">« </a> 上一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html" title="发布于2006-04-03 16:59">Castle ActiveRecord学习实践（1）：快速入门指南</a><br>
<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/06/367978.html">» </a> 下一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/06/367978.html" title="发布于2006-04-06 08:28">Castle ActiveRecord学习实践（3）：映射基础</a><br>
</div>








		</div>
		<div class="postDesc">posted @ 2006-04-05 12:38 <a href="http://www.cnblogs.com/Terrylee/">TerryLee</a> 阅读(16052) <a href="#commentform">评论(27)</a> &nbsp;<a href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?postid=367381">编辑</a> <a href="http://www.cnblogs.com/Terrylee/AddToFavorite.aspx?id=367381">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  所属分类: <a href="http://www.cnblogs.com/Terrylee/category/48535.html">[11]&nbsp;&nbsp;数据持久</a>, <a href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界</a></div>
	</div>
	<img src="367381.html" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html"
dc:identifier="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/Terrylee/services/trackbacks/367381.aspx" />
</rdf:RDF>
-->

</div><!--end: topics 文章、评论容器-->
<a name="pagedcomment"></a>
<!--done-->
<br>
<div class="feedback_area_title">发表评论</div>
<div class="feedbackNoItems"><span id="span_comment_maxid" style="display: none;">1744916</span></div>
	

		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("22",379838,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(379838,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#379838">#1楼</a><a name="379838" id="comment_anchor_379838"></a>2006-04-20 10:10 | <a id="Comments1_CommentList_ctl00_NameLink" target="_blank">22[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_379838" class="blog_comment_body">Very Good，谢谢有这么为程序员着想的高手！！！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Terrylee",379927,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(379927,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Terrylee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#379927">#2楼</a><a name="379927" id="comment_anchor_379927"></a>[<span class="louzhu">楼主</span>]2006-04-20 11:21 | <a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">Terrylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Terrylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_379927" class="blog_comment_body">@22
<br>呵呵，谢谢支持！
<br>
<br>高手谈不上，还是那句交换苹果的老话^_^</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("meil",384600,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(384600,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#384600">#3楼</a><a name="384600" id="comment_anchor_384600"></a>2006-04-25 15:02 | <a id="Comments1_CommentList_ctl02_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://meil75.bokee.com" target="_top">meil[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_384600" class="blog_comment_body">非常棒！学习。。。。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Terrylee",384601,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(384601,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Terrylee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#384601">#4楼</a><a name="384601" id="comment_anchor_384601"></a>[<span class="louzhu">楼主</span>]2006-04-25 15:05 | <a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">Terrylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Terrylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_384601" class="blog_comment_body">@meil
<br>
<br>谢谢：）</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("SK",398036,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(398036,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#398036">#5楼</a><a name="398036" id="comment_anchor_398036"></a>2006-05-12 10:47 | <a id="Comments1_CommentList_ctl04_NameLink" target="_blank">SK[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_398036" class="blog_comment_body">如果是Web程序，这个Application_Start应该放在什么地方?</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Terrylee",398210,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(398210,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Terrylee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#398210">#6楼</a><a name="398210" id="comment_anchor_398210"></a>[<span class="louzhu">楼主</span>]2006-05-12 12:32 | <a id="Comments1_CommentList_ctl05_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">Terrylee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Terrylee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_398210" class="blog_comment_body">@SK
<br>晕，Web应用程序的Application_Start在Global.asax中
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("koala",423375,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(423375,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#423375">#7楼</a><a name="423375" id="comment_anchor_423375"></a>2006-06-11 21:30 | <a id="Comments1_CommentList_ctl06_NameLink" target="_blank">koala[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_423375" class="blog_comment_body">Terrylee ,问一个简单的问题：
<br>[.NET2.0]
<br>
<br>IConfigurationSource source = System.Configuration. ConfigurationManager.GetSection ("activerecord") as IConfigurationSource;
<br>
<br>ActiveRecordStarter.Initialize( source, typeof(ActiveRecordBase) );
<br>
<br>这样可以初始化所有的继承至ActiveRecordBase的类嘛？我试过好像不行，还是要填ActiveRecordStarter.Initialize( source, typeof(user) );是不是每一个类都都样这样初始话？100个表是不是要写100句？
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("koala",423407,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(423407,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#423407">#8楼</a><a name="423407" id="comment_anchor_423407"></a>2006-06-11 22:15 | <a id="Comments1_CommentList_ctl07_NameLink" target="_blank">koala[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_423407" class="blog_comment_body"> Assembly assembly = Assembly.Load("ARTest");
<br> ActiveRecordStarter.Initialize(assembly, source);
<br>
<br>这样可以一次初始化所有的程序集里面的类。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("zyq22",493502,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(493502,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#493502">#9楼</a><a name="493502" id="comment_anchor_493502"></a>2006-09-03 10:07 | <a id="Comments1_CommentList_ctl08_NameLink" target="_blank">zyq22[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_493502" class="blog_comment_body">请问Access数据库怎么连!!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("jasper[匿名]",508725,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(508725,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#508725">#10楼</a><a name="508725" id="comment_anchor_508725"></a>2006-09-19 18:06 | <a id="Comments1_CommentList_ctl09_NameLink" target="_blank">jasper[匿名][未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_508725" class="blog_comment_body">谢谢楼主，你是救世主啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("花生米",514609,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(514609,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#514609">#11楼</a><a name="514609" id="comment_anchor_514609"></a>2006-09-25 21:48 | <a id="Comments1_CommentList_ctl10_NameLink" target="_blank">花生米[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_514609" class="blog_comment_body">Castle.ActiveRecord.Framework.ActiveRecordException: You must specify a discriminator value for the type wygl.entity.Precinct。
<br>
<br>不知道这个错误是怎么回事?我是用vs2005+sql2005
<br>以前没有用过,楼主可否指导一下?非常感谢!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",514798,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(514798,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#514798">#12楼</a><a name="514798" id="comment_anchor_514798"></a>[<span class="louzhu">楼主</span>]2006-09-26 08:36 | <a id="Comments1_CommentList_ctl11_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_514798" class="blog_comment_body">@花生米
<br>实体类有问题，属性Precinct应该有一个默认值才可以</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("lizheng",517966,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(517966,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#517966">#13楼</a><a name="517966" id="comment_anchor_517966"></a>2006-09-29 10:44 | <a id="Comments1_CommentList_ctl12_NameLink" target="_blank">lizheng[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_517966" class="blog_comment_body">是不是每一个类都都样这样初始话？100个表是不是要写100句？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("辉洒 |=@ DADA CAI CAI WORKSPACE (@2006)",549222,"Q9VjnspiAe8RukGTo+4+xr1bYHgIdHAoye65InFpnTOtYC10zNR7sw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(549222,"Q9VjnspiAe8RukGTo+4+xr1bYHgIdHAoye65InFpnTOtYC10zNR7sw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%be%89%e6%b4%92+%7c%3d%40+DADA+CAI+CAI+WORKSPACE+%28%402006%29" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl13$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#549222">#14楼</a><a name="549222" id="comment_anchor_549222"></a>2006-11-03 16:15 | <a id="Comments1_CommentList_ctl13_NameLink" href="http://www.cnblogs.com/eugenewu0808/" target="_top">辉洒 |=@ DADA CAI CAI WORKSPACE (@2006)</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e8%be%89%e6%b4%92+%7c%3d%40+DADA+CAI+CAI+WORKSPACE+%28%402006%29" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_549222" class="blog_comment_body">老大,受教了..
<br>
<br>刚学,放在配置文件中,与你提供的一模一样,老出现一问题:
<br>未处理的“System.Configuration.ConfigurationException”类型的异常出现在 system.dll 中。
<br>
<br>其他信息: 配置节处理程序中的异常
<br>
<br>指示第7行出错.我用DataSet.ReadXML()是可以的.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("辉洒 |=@ DADA CAI CAI WORKSPACE (@2006)",549243,"Q9VjnspiAe8RukGTo+4+xr1bYHgIdHAoye65InFpnTOtYC10zNR7sw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(549243,"Q9VjnspiAe8RukGTo+4+xr1bYHgIdHAoye65InFpnTOtYC10zNR7sw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%be%89%e6%b4%92+%7c%3d%40+DADA+CAI+CAI+WORKSPACE+%28%402006%29" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl14$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#549243">#15楼</a><a name="549243" id="comment_anchor_549243"></a>2006-11-03 16:34 | <a id="Comments1_CommentList_ctl14_NameLink" href="http://www.cnblogs.com/eugenewu0808/" target="_top">辉洒 |=@ DADA CAI CAI WORKSPACE (@2006)</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e8%be%89%e6%b4%92+%7c%3d%40+DADA+CAI+CAI+WORKSPACE+%28%402006%29" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_549243" class="blog_comment_body">问题搞定,原来是我没有引用Castle.Core; 注:如果没有引用log4net 的话下面ActiveRecordStarter.Initialize(source, typeof (User));这句会报错!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",549545,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(549545,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl15$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#549545">#16楼</a><a name="549545" id="comment_anchor_549545"></a>[<span class="louzhu">楼主</span>]2006-11-03 21:55 | <a id="Comments1_CommentList_ctl15_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_549545" class="blog_comment_body">@辉洒 |=@ DADA CAI CAI WORKSPACE (@2006)
<br>解决了就好</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("小兵[匿名]",607848,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(607848,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl16$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#607848">#17楼</a><a name="607848" id="comment_anchor_607848"></a>2006-12-30 13:51 | <a id="Comments1_CommentList_ctl16_NameLink" target="_blank">小兵[匿名][未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_607848" class="blog_comment_body">后台的库是Oracle<br>需要安装Oracle客户端吗？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("funstar@sina.com",731291,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(731291,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl17$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#731291">#18楼</a><a name="731291" id="comment_anchor_731291"></a>2007-04-28 17:01 | <a id="Comments1_CommentList_ctl17_NameLink" target="_blank">funstar@sina.com[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_731291" class="blog_comment_body">你的例子我运行出现错误，不知为什么？
<br>编译器错误信息: CS0433: 类型“ARExamWithAspnet.Employee”同时存在于“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\arexamwithaspnet\4d1df709\af1147a4\assembly\dl3\78456cc2\166b657e_6689c701\Model.DLL”和“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\arexamwithaspnet\4d1df709\af1147a4\assembly\dl3\8ed05ab0\322c2a8f_7289c701\arexamwithaspnet.DLL”中
<br>
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("mingxingw",770996,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(770996,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl18$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#770996">#19楼</a><a name="770996" id="comment_anchor_770996"></a>2007-06-04 17:49 | <a id="Comments1_CommentList_ctl18_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://mingxing_84@163.com" target="_top">mingxingw[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_770996" class="blog_comment_body">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
<br>
<br>&lt;activerecord&gt;
<br>
<br>    &lt;config&gt;
<br>
<br>        &lt;add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" /&gt;
<br>
<br>        &lt;add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" /&gt;
<br>
<br>        &lt;add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" /&gt;
<br>
<br>        &lt;add key="hibernate.connection.connection_string" value="Data Source=.;Initial Catalog=ARDemo;UID=sa;Password=sa" /&gt;
<br>
<br>    &lt;/config&gt;
<br>
<br>&lt;/activerecord&gt;
<br>
<br>在用这个进行配置数据库时抱错
<br>
<br>Could not Perfrom Save for Users
<br>
<br>这是怎么回事呢！请赐教！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("handianyixin",773219,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(773219,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl19$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#773219">#20楼</a><a name="773219" id="comment_anchor_773219"></a>2007-06-06 10:44 | <a id="Comments1_CommentList_ctl19_NameLink" target="_blank">handianyixin[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_773219" class="blog_comment_body">[Test]要引入哪个命名空间呀?</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("jecray",917778,"oMjmdcgJO02L6o6MaLzMtfkTxC7BkqwZS8/iCf4tq52nIVYU53tC3A==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(917778,"oMjmdcgJO02L6o6MaLzMtfkTxC7BkqwZS8/iCf4tq52nIVYU53tC3A==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=jecray" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl20$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#917778">#21楼</a><a name="917778" id="comment_anchor_917778"></a>2007-10-09 09:49 | <a id="Comments1_CommentList_ctl20_NameLink" href="http://www.cnblogs.com/jecray/" target="_top">jecray</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/jecray" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_917778" class="blog_comment_body">请问能支持Access数据库么</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Gavin.W.Lai(赖文华)",1011003,"UlTMZIQkm9PGI5YKpkyMtnaPZ48H4aRTrYmiiWm/ugiM2oSEP1BK3A==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1011003,"UlTMZIQkm9PGI5YKpkyMtnaPZ48H4aRTrYmiiWm/ugiM2oSEP1BK3A==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Gavin.W.Lai%28%e8%b5%96%e6%96%87%e5%8d%8e%29" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl21$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1011003">#22楼</a><a name="1011003" id="comment_anchor_1011003"></a>2007-12-22 22:49 | <a id="Comments1_CommentList_ctl21_NameLink" href="http://www.cnblogs.com/GavinCome/" target="_top">Gavin.W.Lai(赖文华)</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Gavin.W.Lai%28%e8%b5%96%e6%96%87%e5%8d%8e%29" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1011003" class="blog_comment_body">初学，不知道支持ms access 数据库不！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("study12",1186469,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1186469,"")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl22$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1186469">#23楼</a><a name="1186469" id="comment_anchor_1186469"></a>2008-05-07 11:12 | <a id="Comments1_CommentList_ctl22_NameLink" target="_blank">study12[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1186469" class="blog_comment_body">请问怎么连ACCESS数据库呀..能否写段代码呀</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("david_qie",1233733,"QTWcfgFKsgSW6YBhSdh/yW4bkIt1kjiKmMF0GPeM1+lXkF+NDH+KWg==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1233733,"QTWcfgFKsgSW6YBhSdh/yW4bkIt1kjiKmMF0GPeM1+lXkF+NDH+KWg==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=david_qie" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl23$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1233733">#24楼</a><a name="1233733" id="comment_anchor_1233733"></a>2008-06-23 17:47 | <a id="Comments1_CommentList_ctl23_NameLink" href="http://www.cnblogs.com/qiekong/" target="_top">david_qie</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/david_qie" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1233733" class="blog_comment_body">如何连接多个数据库？我找了很久也没有找到这样的例子，
<br>
<br>能不能提供一个小的例子 ，谢谢！
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("布尔",1263182,"lVDyKxG3V+Mf4DeE26Je7wvrdYEiRQtK2WWgQ4CZBIkbCftYtFeYDw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1263182,"lVDyKxG3V+Mf4DeE26Je7wvrdYEiRQtK2WWgQ4CZBIkbCftYtFeYDw==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%b8%83%e5%b0%94" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl24$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1263182">#25楼</a><a name="1263182" id="comment_anchor_1263182"></a>2008-07-22 06:20 | <a id="Comments1_CommentList_ctl24_NameLink" href="http://www.cnblogs.com/boolean/" target="_top">布尔</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e5%b8%83%e5%b0%94" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1263182" class="blog_comment_body">@Gavin.W.Lai(赖文华)
<br>当然支持了，用Access的方言就可以了。
<br>等我找一下，然后给大家一个链接。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Lex",1728681,"vZa+hzT9Ei3IEbIO+aJoXKPujZy+2AvjqPKn9jpGYk0YZkCFPj3yLA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1728681,"vZa+hzT9Ei3IEbIO+aJoXKPujZy+2AvjqPKn9jpGYk0YZkCFPj3yLA==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Lex" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl25$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1728681">#26楼</a><a name="1728681" id="comment_anchor_1728681"></a>2009-12-19 23:33 | <a id="Comments1_CommentList_ctl25_NameLink" href="http://www.cnblogs.com/lemon0017/" target="_top">Lex</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Lex" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1728681" class="blog_comment_body"><a href="#1186469" title="查看所回复的评论">@</a>study12<br><br><br>&lt;activerecord&gt;<br>      &lt;config&gt;<br>		  &lt;add key="hibernate.connection.driver_class" value="NHibernate.JetDriver.JetDriver, NHibernate.JetDriver"/&gt;<br>		  &lt;add key="hibernate.dialect" value="NHibernate.JetDriver.JetDialect, NHibernate.JetDriver"/&gt;<br>		  &lt;add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/&gt;<br>		  &lt;add key="hibernate.connection.connection_string" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Data.mdb" /&gt;<br>      &lt;/config&gt;<br>      <br>    &lt;/activerecord&gt;</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("kevin.madc",1744916,"UNI8k7Mzxm5OE266qefKiw+OzTmAe5C7OvCy0SjjWKC9e6rVkp4gjg==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1744916,"UNI8k7Mzxm5OE266qefKiw+OzTmAe5C7OvCy0SjjWKC9e6rVkp4gjg==")' href="http://terrylee.cnblogs.com/archive/2006/04/05/367381.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=kevin.madc" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl26$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1744916">#27楼</a><a name="1744916" id="comment_anchor_1744916"></a><a name="Post"></a>2010-01-12 10:30 | <a id="Comments1_CommentList_ctl26_NameLink" href="http://www.cnblogs.com/madcockroach/" target="_top">kevin.madc</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/kevin.madc" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1744916" class="blog_comment_body"><a href="#423407" title="查看所回复的评论">@</a>koala<br>个人觉得用一个类继承自base类，然后在这个类里面做这样的事情。然后全局调用。<br>而不是整个程序集。</span><br>
			</div>
		</div>
	

<div id="ctl05_comment_form" class="commentform">




<div id="ctl05_divLoginPannel">
<div class="login_tips">注册用户登录后才能发表评论，请 <a href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f05%2f367381.html%3flogin%3d1%23commentform" class="underline">登录</a> 或 <a href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f05%2f367381.html%23Bottom2" class="underline">注册</a> 。</div>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55114/" target="_top">谷歌联手亚马逊在英国推出Android音乐商店</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55112/" target="_top">Facebook成为Apache软件基金会黄金赞助商</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55111/" target="_top">IBM荣获2009年美国专利申请冠军</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55100/" target="_top">麦当劳美国餐馆Wi-Fi服务全面免费</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55097/" target="_top">Java SE 6更新，性能大幅提升</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_1.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_2.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>

<div id="relative_search"><br><b>相关搜索:</b><br> <a href="http://zzk.cnblogs.com/s?w=%5b11%5d%e6%95%b0%e6%8d%ae%e6%8c%81%e4%b9%85" target="_top">[11]数据持久</a> <a href="http://zzk.cnblogs.com/s?w=%5b12%5d%e5%bc%80%e6%ba%90%e4%b8%96%e7%95%8c" target="_top">[12]开源世界</a> </div><div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/367381/">Castle ActiveRecord学习实践（2）：构建配置信息</a></div>

</div>


				
	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div class="box">
<h3 class="boxtitle">个人简介</h3>
<ul>
    <li><img src="o_terrylee.png" alt=""></li>
    <li>网名：TerryLee</li>
    <li>本名：李会军</li>
    <li>位置：中国 北京</li>
    <li>请大家发邮件至</li>
    <li><img src="o_terrylee_cnblogs.png" alt="TerryLee"></li>
   </ul>
</div>
<div class="box">
<h3 class="boxtitle">关注我</h3>
<a href="http://twitter.com/TerryLeeTech"><img src="followme.png" alt="在Twitter上关注我" style="margin-left: 5px;"></a>
<a href="http://www.dotneteye.cn/blog/syndication.axd"><img src="feedadd.png" alt="订阅我的Blog" style="margin-left: 15px;"></a>
</div>
<div class="box">
<h3 class="boxtitle">我的著作</h3>
<ul>
    <li><img alt="" src="o_silverlight02.jpg" border="0"></li>
    <li>官网：<a href="http://www.dotneteye.cn/silverlight">《Silverlight 2完美征程》</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">我在说</h3>
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/TerryLeeTech" id="twitter-link" style="display: block; text-align: right;">follow me on Twitter</a>
</div>
<div class="box">
<h3 class="boxtitle">MVP配置</h3>
<ul>
    <li><img alt="" src="o_o_mvp_horizontal_fullcolor_182_74.png" border="0"></li>
    <li><a href="https://mvp.support.microsoft.com/profile=8FECB25C-0CBC-432F-9F25-E2698DDF3CA1">MVP配置</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">个人主页</h3>
<ul>
<li>
<a href="http://www.dotneteye.cn/"><img src="o_dotnet.png" alt=""></a>
</li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">版权声明</h3>
    <ul>
        <li>本站采用<a href="http://creativecommons.org/licenses/by-nc/2.5/" target="_top" rel="license">创作共用</a>许可
        署名，非商业
<a href="http://www.51.la/?00260513" target="_top"><img alt="51.la 专业、免费、强健的访问统计" src="icon_8.gif" style="border: medium none ;"></a>
<img style="width: 0px; height: 0px;" src="go.asp">
        </li></ul>
    </div>
<div class="box">
<h3 class="boxtitle">绿色通道</h3>
  <ul>
   <li>1.<a href="http://www.cnblogs.com/Terrylee/archive/2008/03/09/Silverlight2-step-by-step-Tutorials.html">一步一步学Silverlight 2系列</a></li>
<li>2.<a href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">.NET设计模式系列文章</a></li>
<li>3.<a href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/558683.html">ASP.NET AJAX入门系列</a></li>
<li>4.<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/387503.html">Castle开发系列文章</a></li>
<li>5.<a href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/464591.html">Enterprise Library系列</a></li>
<li><a href="http://dotnet.cnblogs.com/">博客园.NET频道</a></li>
  </ul>
</div><div id="profile_block"><a href="http://home.cnblogs.com/Terrylee/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/Terrylee/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/Terrylee/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/TerryLee" target="_top">发短消息</a></div>
</div>

			
			
			<div id="leftcontentcontainer">
				

<div class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div class="div_my_zzk"><input value="" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
</div>
<div class="catListPostCategory">
<h3 class="catListTitle">随笔分类</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/category/48779.html">[01]&nbsp;&nbsp;.NET大本营(50)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to [01]&amp;nbsp;&amp;nbsp;.NET大本营(50)" href="http://www.cnblogs.com/Terrylee/category/48779.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/category/161309.html">[02]&nbsp;&nbsp;探微知著CLR</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to [02]&amp;nbsp;&amp;nbsp;探微知著CLR" href="http://www.cnblogs.com/Terrylee/category/161309.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/category/78190.html">[03]&nbsp;&nbsp;银光点亮世界(62)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to [03]&amp;nbsp;&amp;nbsp;银光点亮世界(62)" href="http://www.cnblogs.com/Terrylee/category/78190.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/category/36734.html">[04]&nbsp;&nbsp;WCF后传(17)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to [04]&amp;nbsp;&amp;nbsp;WCF后传(17)" href="http://www.cnblogs.com/Terrylee/category/36734.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/category/36516.html">[05]&nbsp;&nbsp;架构与设计(24)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to [05]&amp;nbsp;&amp;nbsp;架构与设计(24)" href="http://www.cnblogs.com/Terrylee/category/36516.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/category/48778.html">[06]&nbsp;&nbsp;LINQ之美(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to [06]&amp;nbsp;&amp;nbsp;LINQ之美(4)" href="http://www.cnblogs.com/Terrylee/category/48778.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/category/115628.html">[07]&nbsp;&nbsp;AJAX风云(15)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" title="Subscribe to [07]&amp;nbsp;&amp;nbsp;AJAX风云(15)" href="http://www.cnblogs.com/Terrylee/category/115628.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/category/37512.html">[08]&nbsp;&nbsp;Web开发(66)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_RssLink" title="Subscribe to [08]&amp;nbsp;&amp;nbsp;Web开发(66)" href="http://www.cnblogs.com/Terrylee/category/37512.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/category/124829.html">[09]&nbsp;&nbsp;依赖注入(14)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_RssLink" title="Subscribe to [09]&amp;nbsp;&amp;nbsp;依赖注入(14)" href="http://www.cnblogs.com/Terrylee/category/124829.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/category/36514.html">[10]&nbsp;&nbsp;模式与实践(68)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_RssLink" title="Subscribe to [10]&amp;nbsp;&amp;nbsp;模式与实践(68)" href="http://www.cnblogs.com/Terrylee/category/36514.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/category/48535.html">[11]&nbsp;&nbsp;数据持久(19)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_RssLink" title="Subscribe to [11]&amp;nbsp;&amp;nbsp;数据持久(19)" href="http://www.cnblogs.com/Terrylee/category/48535.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界(35)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_RssLink" title="Subscribe to [12]&amp;nbsp;&amp;nbsp;开源世界(35)" href="http://www.cnblogs.com/Terrylee/category/53293.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/category/44974.html">[13]&nbsp;&nbsp;代码生成(23)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_RssLink" title="Subscribe to [13]&amp;nbsp;&amp;nbsp;代码生成(23)" href="http://www.cnblogs.com/Terrylee/category/44974.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/category/48958.html">[14]&nbsp;&nbsp;测试与重构(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_RssLink" title="Subscribe to [14]&amp;nbsp;&amp;nbsp;测试与重构(3)" href="http://www.cnblogs.com/Terrylee/category/48958.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/category/124830.html">[15]&nbsp;&nbsp;工作流基础</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_RssLink" title="Subscribe to [15]&amp;nbsp;&amp;nbsp;工作流基础" href="http://www.cnblogs.com/Terrylee/category/124830.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/category/162553.html">[16]&nbsp;&nbsp;技术曲苑杂坛(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_RssLink" title="Subscribe to [16]&amp;nbsp;&amp;nbsp;技术曲苑杂坛(1)" href="http://www.cnblogs.com/Terrylee/category/162553.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/category/160783.html">[17]&nbsp;&nbsp;并行编程(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_RssLink" title="Subscribe to [17]&amp;nbsp;&amp;nbsp;并行编程(1)" href="http://www.cnblogs.com/Terrylee/category/160783.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/category/58451.html">[18]&nbsp;&nbsp;动态语言(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_RssLink" title="Subscribe to [18]&amp;nbsp;&amp;nbsp;动态语言(4)" href="http://www.cnblogs.com/Terrylee/category/58451.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/category/187123.html">[19] 写作生涯(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_RssLink" title="Subscribe to [19] 写作生涯(2)" href="http://www.cnblogs.com/Terrylee/category/187123.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/category/36735.html">[20]&nbsp;&nbsp;推荐系列(32)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_RssLink" title="Subscribe to [20]&amp;nbsp;&amp;nbsp;推荐系列(32)" href="http://www.cnblogs.com/Terrylee/category/36735.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/category/36515.html">[21]&nbsp;&nbsp;数据库相关(18)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_RssLink" title="Subscribe to [21]&amp;nbsp;&amp;nbsp;数据库相关(18)" href="http://www.cnblogs.com/Terrylee/category/36515.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/category/43288.html">[30]&nbsp;&nbsp;前沿报道(28)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_RssLink" title="Subscribe to [30]&amp;nbsp;&amp;nbsp;前沿报道(28)" href="http://www.cnblogs.com/Terrylee/category/43288.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/category/36511.html">[31]&nbsp;&nbsp;项目管理(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_RssLink" title="Subscribe to [31]&amp;nbsp;&amp;nbsp;项目管理(3)" href="http://www.cnblogs.com/Terrylee/category/36511.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/category/148211.html">[32]&nbsp;&nbsp;我点我评(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_RssLink" title="Subscribe to [32]&amp;nbsp;&amp;nbsp;我点我评(2)" href="http://www.cnblogs.com/Terrylee/category/148211.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/category/51852.html">[33]&nbsp;&nbsp;我思我考(13)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_RssLink" title="Subscribe to [33]&amp;nbsp;&amp;nbsp;我思我考(13)" href="http://www.cnblogs.com/Terrylee/category/51852.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/category/51900.html">[34]&nbsp;&nbsp;社区活动(9)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_RssLink" title="Subscribe to [34]&amp;nbsp;&amp;nbsp;社区活动(9)" href="http://www.cnblogs.com/Terrylee/category/51900.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/category/36507.html">[35]&nbsp;&nbsp;东拉西扯(37)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_RssLink" title="Subscribe to [35]&amp;nbsp;&amp;nbsp;东拉西扯(37)" href="http://www.cnblogs.com/Terrylee/category/36507.html/rss">(rss)</a></li>

</ul>

</div>

<div class="catListPostArchive">
<h3 class="catListTitle">随笔档案</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/08.html">2009年8月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/05.html">2009年5月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/04.html">2009年4月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/01.html">2009年1月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/12.html">2008年12月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/11.html">2008年11月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/10.html">2008年10月 (12)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/09.html">2008年9月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/08.html">2008年8月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/07.html">2008年7月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/06.html">2008年6月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/03.html">2008年3月 (41)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/02.html">2008年2月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/01.html">2008年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/12.html">2007年12月 (15)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/11.html">2007年11月 (7)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/07.html">2007年7月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/04.html">2007年4月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/03.html">2007年3月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/02.html">2007年2月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/01.html">2007年1月 (6)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/12.html">2006年12月 (18)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/11.html">2006年11月 (32)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/10.html">2006年10月 (35)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/09.html">2006年9月 (19)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/08.html">2006年8月 (16)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/07.html">2006年7月 (23)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl28_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/06.html">2006年6月 (11)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl29_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/05.html">2006年5月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl30_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/04.html">2006年4月 (24)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl31_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/03.html">2006年3月 (17)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl32_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/02.html">2006年2月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl33_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/01.html">2006年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl34_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/12.html">2005年12月 (38)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl35_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/11.html">2005年11月 (20)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl36_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/10.html">2005年10月 (27)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl37_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/09.html">2005年9月 (10)</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">个人站点</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_Link" href="http://terrylee.blog.51cto.com/" target="_top">TerryLee @ 51CTO</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_RssLink" title="Subscribe to TerryLee @ 51CTO" href="http://terrylee.blog.51cto.com/">(rss)</a></li>
<li style="margin-top: 2px;">我在51CTO的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_Link" href="http://weblogs.asp.net/TerryLee/" target="_top">TerryLee @ ASP.NET</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_RssLink" title="Subscribe to TerryLee @ ASP.NET" href="http://weblogs.asp.net/terrylee/rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在ASP.NET网站</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_Link" href="http://space.itpub.net/12184684/" target="_top">TerryLee @ IT168</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_RssLink" title="Subscribe to TerryLee @ IT168" href="http://space.itpub.net/12184684/action-rss-type-">(rss)</a></li>
<li style="margin-top: 2px;">我在IT168的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_Link" href="http://blog.joycode.com/terrylee/" target="_top">TerryLee @ 博客堂</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_RssLink" title="Subscribe to TerryLee @ 博客堂" href="http://blog.joycode.com/terrylee/Rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在博客堂的一片天地</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl05_Link" href="http://www.dotneteye.cn/" target="_top">个人主页</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">我的好友</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_Link" href="http://chwkai.cnblogs.com/" target="_top">Aero</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_RssLink" title="Subscribe to Aero" href="http://chwkai.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_Link" href="http://anchky.cnblogs.com/" target="_top">anchky</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_RssLink" title="Subscribe to anchky" href="http://anchky.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_Link" href="http://www.cnblogs.com/anytao">Anytao</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_RssLink" title="Subscribe to Anytao" href="http://www.cnblogs.com/anytao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_Link" href="http://www.cnblogs.com/autumoon" target="_top">Autumoon</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_RssLink" title="Subscribe to Autumoon" href="http://www.cnblogs.com/Autumoon/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_Link" href="http://www.cnblogs.com/renrenqq/" target="_top">DDL</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_RssLink" title="Subscribe to DDL" href="http://www.cnblogs.com/renrenqq/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_Link" href="http://dflying.cnblogs.com/" target="_top">Dflying Chen</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_RssLink" title="Subscribe to Dflying Chen" href="http://dflying.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_Link" href="http://dudu.cnblogs.com/" target="_top">Dudu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_RssLink" title="Subscribe to Dudu" href="http://dudu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_Link" href="http://perhaps.cnblogs.com/" target="_top">Fantasy Soft</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_RssLink" title="Subscribe to Fantasy Soft" href="http://perhaps.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_Link" href="http://idior.cnblogs.com/" target="_top">idior</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_RssLink" title="Subscribe to idior" href="http://idior.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_Link" href="http://www.cnblogs.com/jessequ" target="_top">JesseQu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_RssLink" title="Subscribe to JesseQu" href="http://www.cnblogs.com/jessequ/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_Link" href="http://www.cnblogs.com/Jillzhang" target="_top">Jillzhang</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_RssLink" title="Subscribe to Jillzhang" href="http://www.cnblogs.com/jillzhang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_Link" href="http://kid-li.cnblogs.com/" target="_top">kid-li</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_RssLink" title="Subscribe to kid-li" href="http://kid-li.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_Link" href="http://luking.cnblogs.com/" target="_top">luking</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_RssLink" title="Subscribe to luking" href="http://luking.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_Link" href="http://www.cnblogs.com/michellehu" target="_top">MichelleHu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_RssLink" title="Subscribe to MichelleHu" href="http://www.cnblogs.com/michellehu/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_Link" href="http://blog.csdn.net/priderock" target="_top">PrideRock的专栏</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_RssLink" title="Subscribe to PrideRock的专栏" href="http://feeds.feedsky.com/csdn.net/PrideRock">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_Link" href="http://www.cnblogs.com/isuper/" target="_top">RogerTong </a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_RssLink" title="Subscribe to RogerTong " href="http://www.cnblogs.com/isuper/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_Link" href="http://www.cnblogs.com/Sunmoonfire" target="_top">Sunmoonfire</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_RssLink" title="Subscribe to Sunmoonfire" href="http://www.cnblogs.com/Sunmoonfire/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_Link" href="http://www.cnblogs.com/teddyma" target="_top">Teddy</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_RssLink" title="Subscribe to Teddy" href="http://www.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_Link" href="http://www.cnblogs.com/wayfarer" target="_top">wayfarer</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_RssLink" title="Subscribe to wayfarer" href="http://www.cnblogs.com/wayfarer/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_Link" href="http://hjf1223.cnblogs.com/" target="_top">阿不</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_RssLink" title="Subscribe to 阿不" href="http://hjf1223.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_Link" href="http://www.cnblogs.com/bvbook" target="_top">博文视点官方博客</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_RssLink" title="Subscribe to 博文视点官方博客" href="http://www.cnblogs.com/bvbook/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_Link" href="http://www.cnblogs.com/herohuo" target="_top">大人物中的小人物</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_RssLink" title="Subscribe to 大人物中的小人物" href="http://www.cnblogs.com/herohuo/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_Link" href="http://www.cnblogs.com/dingxue" target="_top">丁学</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_RssLink" title="Subscribe to 丁学" href="http://www.cnblogs.com/dingxue/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_Link" href="http://www.cnblogs.com/guaiguai/" target="_top">怪怪</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_RssLink" title="Subscribe to 怪怪" href="http://www.cnblogs.com/guaiguai/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_Link" href="http://www.cnblogs.com/callwangxiang" target="_top">蜡笔小巢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_RssLink" title="Subscribe to 蜡笔小巢" href="http://www.cnblogs.com/callwangxiang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_Link" href="http://www.cnblogs.com/waxdoll/" target="_top">蜡人张</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_RssLink" title="Subscribe to 蜡人张" href="http://waxdoll.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_Link" href="http://www.cnblogs.com/jeffreyzhao" target="_top">老赵</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_RssLink" title="Subscribe to 老赵" href="http://www.cnblogs.com/JeffreyZhao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_Link" href="http://www.joygee.com/" target="_top">李茹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_RssLink" title="Subscribe to 李茹" href="feed://http//www.joygee.com/feed/">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_Link" href="http://www.agilelabs.cn/blogs/linkin/default.aspx" target="_top">卢彦</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_RssLink" title="Subscribe to 卢彦" href="http://www.agilelabs.cn/blogs/linkin/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_Link" href="http://zhenyulu.cnblogs.com/" target="_top">吕震宇</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_RssLink" title="Subscribe to 吕震宇" href="http://zhenyulu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_Link" href="http://www.cnblogs.com/lbq1221119" target="_top">罗炳桥</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_RssLink" title="Subscribe to 罗炳桥" href="http://www.cnblogs.com/lbq1221119/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_Link" href="http://lixianhuei.cnblogs.com/" target="_top">难得一蠢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_RssLink" title="Subscribe to 难得一蠢" href="http://lixianhuei.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_Link" href="http://birdshome.cnblogs.com/" target="_top">鸟食轩</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_RssLink" title="Subscribe to 鸟食轩" href="http://birdshome.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_Link" href="http://bear-study-hard.cnblogs.com/" target="_top">努力学习的熊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_RssLink" title="Subscribe to 努力学习的熊" href="http://bear-study-hard.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_Link" href="http://blog.donews.com/crabhn/" target="_top">螃蟹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_RssLink" title="Subscribe to 螃蟹" href="http://blog.donews.com/crabhn/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_Link" href="http://crysta10203.blog.sohu.com/" target="_top">水晶心情</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_RssLink" title="Subscribe to 水晶心情" href="http://tb.sogou.com/rss?ch=it&amp;desc=%CB%D1%BA%FC%B2%A9%BF%CD%B6%A9%D4%C4&amp;url=http://crysta10203.blog.sohu.com/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_Link" href="http://xh831213.cnblogs.com/" target="_top">小寒</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_RssLink" title="Subscribe to 小寒" href="http://xh831213.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_Link" href="http://overred.cnblogs.com/" target="_top">雁儿飞飞</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_RssLink" title="Subscribe to 雁儿飞飞" href="http://overred.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_Link" href="http://www.cnblogs.com/justinyoung" target="_top">杨正祎</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_RssLink" title="Subscribe to 杨正祎" href="http://www.cnblogs.com/JustinYoung/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_Link" href="http://goodcandle.cnblogs.com/" target="_top">源码工作室</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_RssLink" title="Subscribe to 源码工作室" href="http://goodcandle.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_Link" href="http://www.cnblogs.com/msdpe/" target="_top">张大磊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_RssLink" title="Subscribe to 张大磊" href="http://www.cnblogs.com/msdpe/RSS.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl42_Link" href="http://www.cyworld.com.cn/qiansui" target="_top">张莹</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_Link" href="http://www.cnblogs.com/zhouyinhui" target="_top">周银辉</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_RssLink" title="Subscribe to 周银辉" href="http://www.cnblogs.com/zhouyinhui/rss">(rss)</a></li>

</ul>

</div>



<div class="catListBlogRank">
<h3 class="catListTitle">积分与排名</h3>
<ul>
	<li class="liScore">
		积分 -	5250874
	</li><li class="liRank">
		排名 -	3
	</li>
</ul>
</div>



<div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">1.&nbsp;.NET设计模式系列文章(240785)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">2.&nbsp;ASP.NET AJAX入门系列(162046)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">3.&nbsp;强烈推荐：240多个jQuery插件(160249)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(94439)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">5.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(88540)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">6.&nbsp;Enterprise Library系列文章回顾与总结(87348)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">7.&nbsp;Castle 开发系列文章(87221)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">8.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(85295)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/09/28/246050.html">9.&nbsp;今天下午真郁闷……(79632)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">10.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(73903)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/24/ASPNET_AJAX_Quick_Starts_Overview.html">11.&nbsp;ASP.NET AJAX入门系列（1）：概述(67798)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">12.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(49550)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">13.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(47209)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">14.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(44878)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">15.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(44506)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293465.html">16.&nbsp;.NET设计模式（1）：开篇(36398)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/14/254631.html">17.&nbsp;Enterprise Library Step By Step系列（一）：配置应用程序块——入门篇(36023)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/19/299878.html">18.&nbsp;.NET设计模式（4）：建造者模式（Builder Pattern）(34152)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/28/306254.html">19.&nbsp;CodeSmith开发系列资料总结(30459)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/12/01/OpenSource_Framework_And_Resource_Recommendation_Overview.html">20.&nbsp;.NET开源项目介绍及资源推荐：序(30351)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl21_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part2.html">21.&nbsp;一步一步学Silverlight 2系列（2）：基本控件(29159)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl22_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/27/ASPNET_AJAX_ScriptManagerProxy.html">22.&nbsp;ASP.NET AJAX入门系列（3）：使用ScriptManagerProxy控件(28846)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl23_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/09/01/atlas_series_articles.html">23.&nbsp;Atlas学习手记系列(28339)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl24_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">24.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(28231)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl25_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/01/ASPNET_AJAX_UpdatePanle_Part2.html">25.&nbsp;ASP.NET AJAX入门系列（5）：使用UpdatePanel控件（二）(27899)</a>
			</li>
		
			</ul>
		
</div>

<div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/13/253667.html">1.&nbsp;如何用SQLDMO在ASP.NET页面下实现数据库的备份与恢复(395)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">2.&nbsp;.NET设计模式系列文章(355)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2009/01/05/LINQ-and-LINQ-to-SQL.html">3.&nbsp;不得不为LINQ说几句话，驳“LINQ已死”论(318)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(246)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310968.html">5.&nbsp;CodeSmith3.0开发资料下载(233)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">6.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/05/23/406688.html">7.&nbsp;新版设计模式手册[C#]下载(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">8.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(179)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">9.&nbsp;强烈推荐：240多个jQuery插件(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">10.&nbsp;ASP.NET AJAX入门系列(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">11.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(166)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">12.&nbsp;Castle 开发系列文章(164)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">13.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(162)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">14.&nbsp;Enterprise Library系列文章回顾与总结(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">15.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">16.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(153)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/03/21/354972.html">17.&nbsp;天津.NET俱乐部成立了！(146)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">18.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(133)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/04/TemplateEngine-Smart-Code-Preview.html">19.&nbsp;基于模板引擎的代码生成器Smart Code预览(129)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">20.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(125)</a>
			</li>
		
			</ul>
		
</div>

			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright ©2010 TerryLee
	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->
    </form>
	
	
      
    
    
    
</body>
</html>
